#ifndef WOOCHY_COORDINATE_TRANSFORMATION_H
#define WOOCHY_COORDINATE_TRANSFORMATION_H

#include <list>
#include "cv.h"
#include "movement.h"

class CoordinateTransformer {
private:
	std::pair<int, int> _last_origin;
	int _last_unit;
	cv::CascadeClassifier _cascade;
	int detect_face_intern(IplImage *img, CvPoint &center, int &rad);
public:
	CoordinateTransformer();
	virtual ~CoordinateTransformer();
	int coord_convert(Movement &mov, IplImage *img);
	int coord_convert(std::list<Movement> &mov, IplImage *img);
	int mark_face(IplImage *img);
};

#endif

